<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>地址管理管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">地址管理列表</a></li>
		<%-- <shiro:hasPermission name="address:accountInfoAddress:edit"><li><a href="${ctx}/address/accountInfoAddress/form">地址管理添加</a></li></shiro:hasPermission> --%>
	</ul>
	<sys:message content="${message}"/>
	<form:form id="searchForm" modelAttribute="accountInfoAddress" action="${ctx}/address/accountInfoAddress/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<%-- <sys:treeselect id="address" name="accountInfo.id" value="${accountInfoAddress.accountInfo.username}" labelName="accountInfo.username" labelValue="${accountInfoAddress.accountInfo.id}"
					title="栏目" url="/address/accountInfoAddress/treeData" module="address" notAllowSelectRoot="false" cssClass="input-small"/> --%>
		<ul class="ul-form">
			<li class="btns">
			<%-- <input type="hidden" name="accountInfo.id" value="${accountInfo.id}"> --%>
				<input class="margin-right-10" type="text" name="username" value="${accountInfo.username}" placeholder="用户名称"/>
				<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
			</li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	
	
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<%-- <thead>
			<tr>
				<shiro:hasPermission name="address:accountInfoAddress:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="accountInfoAddress">
			<tr>
				<shiro:hasPermission name="address:accountInfoAddress:edit"><td>
    				<a href="${ctx}/address/accountInfoAddress/form?id=${accountInfoAddress.id}">修改</a>
					<a href="${ctx}/address/accountInfoAddress/delete?id=${accountInfoAddress.id}" onclick="return confirmx('确认要删除该地址管理吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody> --%>
			<thead>
				<tr>
					<th>收货人</th>
					<th>省份</th>
					
					<th>城市</th>
					<th>地区、县</th>
					
					<th>详细地址</th>
				<!--	<th>回复时间</th> -->
			    <shiro:hasPermission name="address:accountInfoAddress:edit"><th>操作</th></shiro:hasPermission></tr>
			</thead>
		
		<tbody>
			<c:forEach items="${page.list}" var="address">
				<tr>
					<td>${address.addUsername}</td>
				    <td>${address.province}</td>
				
					<td>${address.city}</td>
					<td>${address.countyTown}</td>
					<td>${address.detail}</td>
					
					
					<shiro:hasPermission name="address:accountInfoAddress:edit"><td>
	    				<a href="${ctx}/address/accountInfoAddress/form?id=${address.id}">查看</a>
						<%-- <a href="${ctx}/accountInfo/delete?id=${accountInfo.id}" onclick="return confirmx('确认要删除该用户吗？', this.href)">删除</a> --%>
					</td></shiro:hasPermission>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>

</html>